const crypto = require('crypto')
const moment = require('moment')
const key = 'Wjyu_456#_.'
const md5 = (content) => {
  return crypto.createHash('md5')
    .update(content).digest('hex');
}
// 
module.exports = {
  getPassword: (password) => {
    return md5(`password=${password}&key=${key}`)
  },
  getTime: (time) => {
    return moment(time).format("YYYY-M-D");
  }
}